package com.xyf.sys.controller;

import com.xyf.sys.service.IProductOptionService;
import com.xyf.sys.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author R-H
 * @Date 2024/5/142009
 * @Description
 */
@RestController
@RequestMapping("/option")
@Slf4j
@Api(tags = "商品属性管理")
public class ProductOptionController {

    @Autowired
    private IProductOptionService productOptionService;

    @ApiOperation("查询列表")
    @GetMapping("/list")
    public Object list() {
        return R.ok(productOptionService.getList());
    }
}
